== Installing OVS ==

apt-get install neutron-plugin-openvswitch-agent

== Configure bridges ==

ovs-vsctl add-br br-eth2
ovs-vsctl add-port br-eth2 eth2

== Configuring ML2 ==

## BEGIN updates to /etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
mechanism_drivers = openvswitch,l2population
tenant_network_types = vxlan,vlan

[ml2_type_flat]
flat_networks = physnet2

[ml2_type_vlan]
network_vlan_ranges = physnet2:30:33

[ml2_type_vxlan]
vni_ranges = 1:1000

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[OVS]
bridge_mappings = physnet2:br-eth2
enable_tunneling = true
tunnel_type = vxlan
local_ip = 172.18.0.100

[agent]
tunnel_types = vxlan

## END updates to /etc/neutron/plugins/ml2/ml2_conf.ini

## BEGIN updates to /etc/nova/nova.conf

[DEFAULT]
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver

## END updates to /etc/nova/nova.conf

## BEGIN updates to /etc/neutron/dhcp_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

## END updates to /etc/neutron/dhcp_agent.ini

service neutron-plugin-openvswitch-agent restart
service nova-api restart
service neutron-server restart
service neutron-dhcp-agent restart
neutron agent-list 